package com.zuihai.app.mvp.ui.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.zuihai.app.R;
import com.zuihai.app.mvp.model.entity.SearchHot;
import com.zuihai.app.mvp.ui.holder.BaseViewHolderWraper;

import java.util.List;

/**
 * Created by Zc on 2017/4/28.
 */

public class SearchHotAdapter extends BaseQuickAdapter<SearchHot, BaseViewHolderWraper> {

    public SearchHotAdapter(Context context, List<SearchHot> infos) {
        super(R.layout.layout_item_search_hot, infos);
    }

    @Override
    protected void convert(BaseViewHolderWraper helper, SearchHot item) {
        helper.setText(R.id.tv_ranking, String.valueOf(item.ranking));
        helper.setText(R.id.tv_text, String.valueOf(item.text));
    }
}
